package com.atguigu.comment.client;

import com.atguigu.commonutils.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name = "service-ucenter",fallback = CommentFileDegradeFeignClient.class)
public interface CommentClient {
    //调用根据用户id查询用户信息
    @PostMapping("/educenter/member/getUserInfoById/{id}")
    public UcenterMemberVo getMemberInfoById(@PathVariable("id") String memberId);
}
